Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 7 - Transform Objects / Transform Objects Reference
Transform Objects Routines / Creating and Manipulating Translate Transforms


Q3TranslateTransform_New

You can use the Q3TranslateTransform_New function to create a new translate transform.

TQ3TransformObject Q3TranslateTransform_New (
const TQ3Vector3D *translate);
translate
A vector whose three fields specify the desired translation along each coordinate axis.
DESCRIPTION
The Q3TranslateTransform_New function returns, as its function result, a reference to a new transform object of type kQ3TransformTypeTranslate using the data passed in the translate parameter. The transform translates an object by the values in translate->x, translate->y, and translate->z, respectively. The data you pass in the translate parameter is copied into internal QuickDraw 3D data structures. If QuickDraw 3D cannot allocate memory for those structures, Q3TranslateTransform_New returns the value NULL.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996